// 1. 引入axios
import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export const updatePassword = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}

export const getUserInfoAPI = () => {
  return request.get('/sys/profile')
}

